package com.singleton.singleton;

public class Singleton {
	private static Singleton singleton = null;
	//private constructor
	private Singleton(){}
	static{
		singleton = new Singleton();
		System.out.println("Singleton pro");
	}
	public static Singleton getSingleton(){
		System.out.println("returning ref");
		return singleton;
	}
}
